<h1><?php echo UserModule::t('Восстановление пароля'); ?></h1>
<?php if ('' != $error):?>
    <div class="error">
        <p><?php echo $error;?></p>
    </div>
<? else :?>
<?php $form = $this->beginWidget('GxActiveForm', 
	array(
		'id' => 'pass-reset-form',
		'enableAjaxValidation' => false,
	    'enableClientValidation'=>true,
	    'htmlOptions'=>array(
			'class'=>'form-horizontal',
		),
	)
);
?>
<div class="control-group"><p class="note"><?php echo Yii::t('app', 'Поля'); ?> <span class="required">*</span> <?php echo Yii::t('app', 'обязательные'); ?>.</p></div>
<?php 
	echo $form->hiddenField($model,'email',array('maxlength'=>100));
	echo $form->hiddenField($model,'k', array('maxlength'=>100));
	echo $form->errorSummary($model);
?>
<p class="text-error"><?php echo $form->errorSummary($model); ?></p>
<div class="control-group">
	<?php echo $form->labelEx($model,'newPassword',array('class'=>'control-label')); ?>
	<div class="controls">
		<?php echo $form->passwordField($model, 'newPassword', array('maxlength' => 100,'placeholder'=>UserModule::t('Новый пароль'))); ?>
		<span class="help-inline"><?php echo $form->error($model,'newPassword'); ?></span>
	</div>
</div>
<div class="control-group">
	<?php echo $form->labelEx($model,'verifyPassword',array('class'=>'control-label')); ?>
	<div class="controls">
		<?php echo $form->passwordField($model, 'verifyPassword', array('maxlength' => 100,'placeholder'=>UserModule::t('Новый пароль еще раз'))); ?>
		<span class="help-inline"><?php echo $form->error($model,'verifyPassword'); ?></span>
	</div>
</div>
<div class="control-group">
	<div class="controls">
		<?php echo GxHtml::submitButton(UserModule::t('Сохранить новый пароль'), array('class'=>'btn')); ?>
	</div>
</div>
<?php $this->endWidget(); ?>
<!-- form -->﻿
<? endif;?>